<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\GkyUser */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="gky-user-form">
<div class="panel panel-default">
        <div class="panel-heading text-center" style="background: #003eff;color:white">gky-user</div>
        <div class="panel-body">
    <?php $form = ActiveForm::begin([
                'options' => ['class' => 'form-horizontal form-group'],
                'fieldConfig' => [
                    'template' => "{label}<div class=\"col-lg-10\">{input}</div>",
                    'labelOptions' => ['class' => 'col-lg-2 control-label'],
                ]
    ]); ?>

     <div class="col-lg-6">
       <?= $form->field($model, 'username')->textInput(['maxlength' => true]) ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'password_hash')->textInput(['maxlength' => true]) ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'auth_key')->textInput(['maxlength' => true]) ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'confirmed_at')->textInput() ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'unconfirmed_email')->textInput(['maxlength' => true]) ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'blocked_at')->textInput() ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'registration_ip')->textInput(['maxlength' => true]) ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'created_at')->textInput() ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'updated_at')->textInput() ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'flags')->textInput() ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'parentserverid')->textInput() ?>
    </div>
            
    <div class="form-group col-lg-12">
        <?= Html::submitButton($model->isNewRecord ? '新增' : '更新', ['class' => $model->isNewRecord ? 'btn btn-success col-lg-offset-5 col-xs-offset-5 col-sm-offset-5 col-md-offset-5' : 'btn btn-primary col-lg-offset-5 col-xs-offset-5 col-sm-offset-5 col-md-offset-5']) ?>
        <?= Html::a('返回', ['index'], ['class' => 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>
      </div>
    </div>

</div>
